Avoid anonymous entity access
The use of unconditional anonymous entity access could be an indication of a security leak. Add at least one condition, for example a path to owner or by setting an association with the current user just before the usage of the object.